/******************************************************************
 * Created by: DO HOANG HAI                                       
 * Date of Creation: 26/Dec/2007                                              
 * Date of last modification: 29/Dec/2007
 *                                                                
 * Description: Provide access to module PDFMaker to write a pdf file
 * with inputs are filename and the list of bibTexes to be written.
 * 
 * Status: optimized and Finished
 ******************************************************************/

using System;
using System.Collections.Generic;
using System.Text;
using Pbdms.PDFMaker;

namespace Pbdms.BusinessLogic.PDFReporter
{
    /// <summary>
    /// provide means to create PDF document based on different input sets
    /// </summary>
    public class PDFReporter
    {
        /// <summary>
        /// write an pdf file with given filename and arraylist of bibtexes
        /// </summary>
        /// <param name="arlBibTexes"></param>
        /// <param name="filePath"></param>
        public static void printArlOfBibTexes(System.Collections.ArrayList arlBibTexes, String filePath)
        {
            (new BibTexWriter(arlBibTexes)).getPDFDocument(filePath);
        }
        /// <summary>
        /// print a string to the pdf document as a paragraph
        /// </summary>
        /// <param name="str"></param>
        /// <param name="filePath"></param>
        public static void printString(String str,string filePath)
        {
            StringWriter.getPDFDocument(filePath, str);
        }

        
    }
}
